package com.lizemin.multicache.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
 * <p>
 * 员工表
 * </p>
 *
 * @author lizemin
 * @since 2025-04-13
 */
@Getter
@Setter
@ToString
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 所属部门ID
     */
    private Integer departmentId;

    /**
     * 职位
     */
    private String position;

    /**
     * 薪水
     */
    private BigDecimal salary;

    /**
     * 入职日期
     */
    private LocalDate hireDate;

    /**
     * 员工邮箱
     */
    private String email;

    /**
     * 员工电话
     */
    private String phone;

    /**
     * 员工地址
     */
    private String address;

    /**
     * 性别
     */
    private String gender;

    /**
     * 出生日期
     */
    private LocalDate birthDate;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;
}
